<div id="divMain">
	<?=form_open(base_url("untitled/tin/them.html"))?>
	<table align="center" class="tblInsert">
    	<tr>
        	<td>Loại tin:<?=form_error('idLT')?></td>
            <td style="text-align:left">
            	<select name="idLT">
                <?php foreach($resultDDL as $items) { ?><option value="<?=$items->id?>"><?=$items->ten?></option><?php } ?>
                </select>
            </td>
        </tr>
    	<tr>
        	<td>Tên:<?=form_error('ten')?></td>
            <td style="text-align:left"><input type="text" name="ten" value="<?=set_value('ten')?>" /></td>
        </tr>
    	<tr>
        	<td>Thứ tự:<?=form_error('thutu')?></td>
            <td style="text-align:left"><input type="text" name="thutu" value="<?=set_value('thutu')?>" /></td>
        </tr>
    	<tr>
        	<td valign="top">Tóm tắt:<?=form_error('tomtat')?></td>
            <td style="text-align:left">
            	<?php $arr = array('name'=>'tomtat','width'=>'500','height'=>'200','value'=>set_value('tomtat'),'toolbar'=>'Basic'); $this->editor->create($arr);?>
            </td>
        </tr>
    	<tr>
        	<td valign="top">Nội dung:<?=form_error('noidung')?></td>
            <td style="text-align:left">
            	<?php $arr = array('value'=>set_value('noidung'));  $this->editor->create($arr);?>
            </td>
        </tr>
        <tr>
        	<td colspan="2"><?=form_submit("btnSubmit","Thêm")?></td>
        </tr>
    </table>
    <?=form_close()?>
</div>